
<!DOCTYPE HTML>
<html lang="zh-hans" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>装载 · React 基础学习资料</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        <meta name="author" content="小翼">
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="02.html" />
    
    
    <link rel="prev" href="00.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="输入并搜索" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    React 手稿
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../chapter01/00.html">
            
                <a href="../chapter01/00.html">
            
                    
                    基础知识
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="../chapter01/01.html">
            
                <a href="../chapter01/01.html">
            
                    
                    初识React
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="../chapter01/02.html">
            
                <a href="../chapter01/02.html">
            
                    
                    React 特性
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3" data-path="../chapter01/03.html">
            
                <a href="../chapter01/03.html">
            
                    
                    React Initial Project
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.4" data-path="../chapter01/04.html">
            
                <a href="../chapter01/04.html">
            
                    
                    Component和Dom
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.5" data-path="../chapter01/05.html">
            
                <a href="../chapter01/05.html">
            
                    
                    生态组件
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="00.html">
            
                <a href="00.html">
            
                    
                    组件生命周期
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter active" data-level="1.3.1" data-path="01.html">
            
                <a href="01.html">
            
                    
                    装载
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="02.html">
            
                <a href="02.html">
            
                    
                    更新
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3" data-path="03.html">
            
                <a href="03.html">
            
                    
                    卸载
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4" data-path="04.html">
            
                <a href="04.html">
            
                    
                    异常处理
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.5" data-path="05.html">
            
                <a href="05.html">
            
                    
                    React.Component
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="../chapter03/00.html">
            
                <a href="../chapter03/00.html">
            
                    
                    state
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="../chapter03/01.html">
            
                <a href="../chapter03/01.html">
            
                    
                    Component state
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="../chapter03/02.html">
            
                <a href="../chapter03/02.html">
            
                    
                    React-Redux
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.3" data-path="../chapter03/03.html">
            
                <a href="../chapter03/03.html">
            
                    
                    React-Router
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.4" data-path="../chapter03/04.html">
            
                <a href="../chapter03/04.html">
            
                    
                    redux-saga
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="../chapter04/00.html">
            
                <a href="../chapter04/00.html">
            
                    
                    组件其他方法
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1" data-path="../chapter04/01.html">
            
                <a href="../chapter04/01.html">
            
                    
                    其他API
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2" data-path="../chapter04/02.html">
            
                <a href="../chapter04/02.html">
            
                    
                    类属性
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.3" data-path="../chapter04/03.html">
            
                <a href="../chapter04/03.html">
            
                    
                    实例属性
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="../chapter05/00.html">
            
                <a href="../chapter05/00.html">
            
                    
                    React 高级用法
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.1" data-path="../chapter05/01.html">
            
                <a href="../chapter05/01.html">
            
                    
                    keys
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2" data-path="../chapter05/02.html">
            
                <a href="../chapter05/02.html">
            
                    
                    事件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.3" data-path="../chapter05/03.html">
            
                <a href="../chapter05/03.html">
            
                    
                    Refs
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.4" data-path="../chapter05/04.html">
            
                <a href="../chapter05/04.html">
            
                    
                    Fragment
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.5" data-path="../chapter05/05.html">
            
                <a href="../chapter05/05.html">
            
                    
                    Context
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.6" data-path="../chapter05/06.html">
            
                <a href="../chapter05/06.html">
            
                    
                    高阶组件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.7" data-path="../chapter05/07.html">
            
                <a href="../chapter05/07.html">
            
                    
                    类型查检
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.8" data-path="../chapter05/08.html">
            
                <a href="../chapter05/08.html">
            
                    
                    代码分隔
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="../chapter06/00.html">
            
                <a href="../chapter06/00.html">
            
                    
                    React 实例
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.7.1" data-path="../chapter06/01.html">
            
                <a href="../chapter06/01.html">
            
                    
                    List
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.2" data-path="../chapter06/02.html">
            
                <a href="../chapter06/02.html">
            
                    
                    Form
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.3" data-path="../chapter06/03.html">
            
                <a href="../chapter06/03.html">
            
                    
                    Form高级
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.4" data-path="../chapter06/04.html">
            
                <a href="../chapter06/04.html">
            
                    
                    Tooltip
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="../chapter07/00.html">
            
                <a href="../chapter07/00.html">
            
                    
                    React项目打包部署
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.8.1" data-path="../chapter07/01.html">
            
                <a href="../chapter07/01.html">
            
                    
                    与服务端交互
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.2" data-path="../chapter07/02.html">
            
                <a href="../chapter07/02.html">
            
                    
                    打包
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.3" data-path="../chapter07/03.html">
            
                <a href="../chapter07/03.html">
            
                    
                    部署
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.9" data-path="../chapter08/00.html">
            
                <a href="../chapter08/00.html">
            
                    
                    浅谈ES
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.9.1" data-path="../chapter08/01.html">
            
                <a href="../chapter08/01.html">
            
                    
                    ES6 (ES2015)
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.2" data-path="../chapter08/02.html">
            
                <a href="../chapter08/02.html">
            
                    
                    ES7 (ES2016)
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.3" data-path="../chapter08/03.html">
            
                <a href="../chapter08/03.html">
            
                    
                    ES8 (ES2017)
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.4" data-path="../chapter08/04.html">
            
                <a href="../chapter08/04.html">
            
                    
                    ES9 (ES2018)
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.10" data-path="../chapter09/00.html">
            
                <a href="../chapter09/00.html">
            
                    
                    React Hooks
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.10.1" data-path="../chapter09/01.html">
            
                <a href="../chapter09/01.html">
            
                    
                    State Hooks useState
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.2" data-path="../chapter09/02.html">
            
                <a href="../chapter09/02.html">
            
                    
                    State Hooks useReducer
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            本书使用 GitBook 发布
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >装载</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="&#x7EC4;&#x4EF6;&#x52A0;&#x8F7D;">&#x7EC4;&#x4EF6;&#x52A0;&#x8F7D;</h1>
<p>&#x5F53;&#x7EC4;&#x4EF6;&#x88AB;&#x5B9E;&#x4F8B;&#x5316;&#x5E76;&#x4E14;&#x63D2;&#x5165;<code>Dom</code>&#x65F6;&#x6240;&#x6267;&#x884C;&#x7684;&#x65B9;&#x6CD5;&#xFF0C;&#x4E5F;&#x4F1A;&#x6309;&#x7167;&#x4E0B;&#x7684;&#x987A;&#x5E8F;&#x4F9D;&#x6B21;&#x6267;&#x884C;&#x3002;</p>
<ul>
<li><p>constructor()</p>
<p>  &#x6784;&#x9020;&#x65B9;&#x6CD5;&#x3002;</p>
<p>  &#x8FD9;&#x4E2A;&#x65B9;&#x6CD5;&#x6709;&#x4E24;&#x4E2A;&#x76EE;&#x7684;&#xFF1A;</p>
<ul>
<li><p>&#x521D;&#x59CB;&#x5316;&#x4E00;&#x4E2A;&#x672C;&#x5730;<code>state</code>&#x3002;</p>
<pre><code class="lang-jsx"><span class="hljs-keyword">this</span>.state = {color: <span class="hljs-string">&apos;red&apos;</span>};
</code></pre>
<blockquote>
<p>&#x8981;&#x907F;&#x514D;&#x5C06;<code>props</code>&#x53C2;&#x6570;&#x76F4;&#x63A5;&#x8D4B;&#x503C;&#x7ED9;<code>state</code>, <code>this.state = {color: props.color}</code>&#x662F;&#x4E0D;&#x5141;&#x8BB8; &#x7684;</p>
</blockquote>
</li>
<li><p>&#x7ED1;&#x5B9A;&#x65B9;&#x6CD5;&#x3002;</p>
<p>&#x6211;&#x4EEC;&#x77E5;&#x9053;React <code>Class</code>&#x4E2D;&#x662F;&#x4E0D;&#x4F1A;&#x7EE7;&#x627F;<code>this</code>&#x7684;&#xFF0C;&#x5982;&#x679C;&#x5728;<code>class</code>&#x7684;&#x65B9;&#x6CD5;&#x4E2D;&#x4F7F;&#x7528;<code>this</code>&#xFF0C;&#x90A3;&#x4E48;&#x6211;&#x4EEC;&#x9700;&#x8981;&#x5C06;<code>this</code>&#x7ED1;&#x5B9A;&#x5230;&#x65B9;&#x6CD5;&#x4E2D;&#x3002;</p>
<pre><code class="lang-jsx"><span class="hljs-keyword">this</span>.clickHandler = <span class="hljs-keyword">this</span>.clickHandler.bind(<span class="hljs-keyword">this</span>);
</code></pre>
<blockquote>
<p>&#x7ED1;&#x5B9A;<code>this</code>&#xFF0C;&#x5C06;&#x9700;&#x8981;<code>super(props)</code>,&#x5426;&#x5219;&#x4F1A;&#x63D0;&#x793A;&#x627E;&#x4E0D;&#x5230;<code>this</code>.</p>
</blockquote>
<p>&#x793A;&#x4F8B;&#xFF1A;</p>
<pre><code class="lang-jsx"><span class="hljs-keyword">constructor</span>(props) {
  <span class="hljs-keyword">super</span>(props);
  <span class="hljs-keyword">this</span>.state = {color: <span class="hljs-string">&apos;red&apos;</span>};
  <span class="hljs-keyword">this</span>.clickHandler = <span class="hljs-keyword">this</span>.clickHandler.bind(<span class="hljs-keyword">this</span>);
}
</code></pre>
</li>
</ul>
</li>
<li><p>static getDerivedStateFromProps()</p>
<p>  &#x5F53;&#x672C;&#x5730;<code>state</code>&#x9700;&#x8981;&#x6839;&#x636E;<code>props</code>&#x6765;&#x6539;&#x53D8;&#x7684;&#x65F6;&#x5019;&#x53EF;&#x8C03;&#x7528;&#x6B64;&#x65B9;&#x6CD5;&#x3002;</p>
<p>  &#x8FD9;&#x4E2A;&#x65B9;&#x6CD5;&#x662F;&#x5728;<code>render()</code>&#x524D;&#x4F1A;&#x88AB;&#x6267;&#x884C;&#xFF0C;&#x53EA;&#x8981;&#x6267;&#x884C;<code>render()</code>&#x90FD;&#x4F1A;&#x88AB;&#x5728;&#x4E4B;&#x524D;&#x88AB;&#x89E6;&#x53D1;&#x3002;</p>
<p>  &#x8BE5;&#x65B9;&#x6CD5;&#x6709;&#x4E24;&#x4E2A;&#x53C2;&#x6570;<code>props</code>&#x548C;<code>state</code>; &#x8FD4;&#x56DE;&#x503C;&#x4E3A;<code>state</code>&#x5BF9;&#x8C61;, &#x4E0D;&#x9700;&#x8981;&#x8FD4;&#x56DE;&#x6574;&#x4F53;<code>state</code>&#xFF0C;&#x628A;&#x9700;&#x8981;&#x6539;&#x53D8;&#x7684;<code>state</code>&#x8FD4;&#x56DE;&#x5373;&#x53EF;&#x3002;</p>
<p>  &#x793A;&#x4F8B;&#xFF1A;</p>
<pre><code class="lang-jsx">  <span class="hljs-keyword">static</span> getDerivedStateFromProps(props, state) {
    <span class="hljs-keyword">if</span>(props.color !== state.color) {
      <span class="hljs-keyword">return</span> {color: props.color};
    }
  }
</code></pre>
</li>
<li><p>render()</p>
<p>  &#x8FD9;&#x4E2A;&#x65B9;&#x6CD5;&#x662F;React&#x7EC4;&#x4EF6;&#x4E2D;&#x5FC5;&#x987B;&#x8981;&#x63D0;&#x4F9B;&#x7684;&#x65B9;&#x6CD5;&#x3002;&#x5F53;<code>state</code>&#x6216;&#x8005;<code>props</code>&#x4EFB;&#x4E00;&#x6570;&#x636E;&#x6709;&#x66F4;&#x65B0;&#x65F6;&#x90FD;&#x4F1A;&#x6267;&#x884C;&#x3002;</p>
<blockquote>
<p>&#x9700;&#x8981;&#x6CE8;&#x610F;&#x5F53;&#x7EE7;&#x627F;<code>PureComponent</code>&#x65F6;&#xFF0C;&#x4E0D;&#x4F1A;&#x5BF9;&#x5BF9;&#x8C61;&#x8FDB;&#x884C;&#x6DF1;&#x5EA6;&#x6BD4;&#x8F83;&#xFF0C;&#x4E5F;&#x5C31;&#x662F;&#xFF0C;&#x4E0D;&#x4F1A;&#x6839;&#x636E;&#x5BF9;&#x8C61;&#x5185;&#x7684;&#x5BF9;&#x8C61;&#x53D8;&#x5316;&#x65F6;&#x6267;&#x884C;<code>render()</code>.</p>
</blockquote>
<p>  <code>render()</code>&#x662F;&#x4E00;&#x4E2A;&#x7EAF;&#x51FD;&#x6570;&#xFF0C;&#x4E5F;&#x5C31;&#x662F;&#x4E0D;&#x80FD;&#x5728;&#x8FD9;&#x4E2A;&#x65B9;&#x6CD5;&#x4E2D;&#x6709;&#x7C7B;&#x4F3C;<code>setState()</code>&#x8FD9;&#x6837;&#x7684;&#x884C;&#x4E3A;&#x3002;</p>
<p>  &#x8FD4;&#x56DE;&#x7684;&#x6570;&#x636E;&#x7C7B;&#x578B;&#x53EF;&#x4EE5;&#x6709;&#xFF1A;</p>
<ul>
<li><p><code>null</code>&#x3001;<code>String</code>&#x3001;<code>Number</code>&#x3001;<code>Array</code>&#x3001;<code>Boolean</code>&#x3002;</p>
</li>
<li><p>React elements</p>
</li>
<li><p>Fragment</p>
</li>
<li><p>Portal</p>
</li>
</ul>
<blockquote>
<p>&#x6CE8;&#x610F;&#xFF1A;&#x4E0D;&#x80FD;&#x8FD4;&#x56DE;<code>undefined</code>&#x3002;</p>
</blockquote>
<p>&#x5F53;<code>shouldComponentUpdate()</code>&#x8FD4;&#x56DE;<code>false</code>&#x65F6;&#xFF0C;&#x65E0;&#x8BBA;<code>state</code>&#x548C;<code>props</code>&#x6709;&#x6CA1;&#x6709;&#x53D8;&#x5316;&#xFF0C;&#x8FD9;&#x4E2A;&#x65B9;&#x6CD5;&#x90FD;&#x4E0D;&#x6267;&#x884C;&#x3002;</p>
<p>&#x793A;&#x4F8B;&#xFF1A;</p>
<pre><code class="lang-jsx">render() {
  <span class="hljs-keyword">return</span> (
    <span class="xml"><span class="hljs-tag">&lt;<span class="hljs-name">div</span>&gt;</span>{this.state.color}<span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span></span>
  );
}
</code></pre>
</li>
<li><p>componentDidMount()</p>
<p><code>componentDidMount()</code>&#x65B9;&#x6CD5;&#x662F;&#x5728;&#x7EC4;&#x4EF6;&#x52A0;&#x8F7D;&#x5B8C;&#x540E;&#x7ACB;&#x5373;&#x6267;&#x884C;&#xFF0C;&#x4E5F;&#x5C31;&#x662F;&#x5F53;&#x8BE5;&#x7EC4;&#x4EF6;&#x76F8;&#x5173;&#x7684;<code>dom</code>&#x8282;&#x70B9;&#x63D2;&#x5165;&#x5230;<code>dom</code>&#x6811;&#x4E2D;&#x65F6;&#x3002;&#x8BE5;&#x65B9;&#x6CD5;&#x5728;&#x7EC4;&#x4EF6;&#x751F;&#x547D;&#x4E2D;&#x53EA;&#x6267;&#x884C;&#x4E00;&#x6B21;&#x3002;</p>
<p>&#x4E00;&#x822C;&#x60C5;&#x51B5;&#xFF0C;&#x6211;&#x4EEC;&#x4F1A;&#x5728;&#x8FD9;&#x91CC;<code>setState()</code>&#x6839;&#x636E;<code>props</code>&#x7684;&#x503C;&#xFF0C;&#x4E5F;&#x53EF;&#x4EE5;&#x4ECE;&#x8FD9;&#x91CC;&#x8C03;&#x7528;&#x63A5;&#x53E3;&#xFF0C;&#x83B7;&#x53D6;&#x670D;&#x52A1;&#x7AEF;&#x7684;&#x6570;&#x636E;&#xFF0C;&#x4E5F;&#x53EF;&#x4EE5;&#x5728;&#x8FD9;&#x91CC;&#x76D1;&#x542C;<code>websocket&#x3001;setInterval</code>&#x7B49;&#x64CD;&#x4F5C;&#x3002;</p>
<blockquote>
<p>&#x6CE8;&#x610F;&#xFF1A;&#x4E00;&#x4E9B;&#x76D1;&#x542C;&#x9700;&#x8981;&#x5728;&#x7EC4;&#x4EF6;&#x5378;&#x8F7D;&#x65F6;&#x6E05;&#x7406;&#x6389;&#xFF0C;&#x5426;&#x5219;&#x4F1A;&#x5F15;&#x8D77;&#x5F02;&#x5E38;&#x3002;</p>
</blockquote>
<p>&#x793A;&#x4F8B;&#xFF1A;</p>
<pre><code class="lang-jsx">componentDidMount() {
  <span class="hljs-keyword">this</span>.setState({color: <span class="hljs-keyword">this</span>.props.color});
}
</code></pre>
</li>
</ul>
<p><a href="https://codesandbox.io/s/8lkpy76158" target="_blank">&#x5728;&#x7EBF;&#x793A;&#x4F8B;</a>  </p>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="00.html" class="navigation navigation-prev " aria-label="Previous page: 组件生命周期">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="02.html" class="navigation navigation-next " aria-label="Next page: 更新">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"装载","level":"1.3.1","depth":2,"next":{"title":"更新","level":"1.3.2","depth":2,"path":"chapter02/02.md","ref":"./chapter02/02.md","articles":[]},"previous":{"title":"组件生命周期","level":"1.3","depth":1,"path":"chapter02/00.md","ref":"./chapter02/00.md","articles":[{"title":"装载","level":"1.3.1","depth":2,"path":"chapter02/01.md","ref":"./chapter02/01.md","articles":[]},{"title":"更新","level":"1.3.2","depth":2,"path":"chapter02/02.md","ref":"./chapter02/02.md","articles":[]},{"title":"卸载","level":"1.3.3","depth":2,"path":"chapter02/03.md","ref":"./chapter02/03.md","articles":[]},{"title":"异常处理","level":"1.3.4","depth":2,"path":"chapter02/04.md","ref":"./chapter02/04.md","articles":[]},{"title":"React.Component","level":"1.3.5","depth":2,"path":"chapter02/05.md","ref":"./chapter02/05.md","articles":[]}]},"dir":"ltr"},"config":{"plugins":[],"root":"./books","styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","author":"小翼","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"React 基础学习资料","language":"zh-hans","links":{"gitbook":false,"sharing":{"google":true,"facebook":true,"twitter":true}},"gitbook":"*"},"file":{"path":"chapter02/01.md","mtime":"2020-03-07T07:33:43.849Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2020-03-09T08:08:41.080Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

